package p09.p0913;

public class AnimalDemo {
    public static void main(String[] args) {
    /*    Animal a = new Dog();
        a.eat();
        Dog d = (Dog) a;
        d.playGame();
        a = new Cat();
        Cat c = (Cat)a;
       // Dog dd = (Dog)a;*/

    Animal animal = new Dog();
    animal.eat();

    Dog dog = (Dog) animal;

    dog.playGame();
    dog.ddd();

    }

}

